package pe.com.bn.sach.domain;

/**
 * Bnchf54ParamSitcLaboralId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Bnchf54ParamSitcLaboralId implements java.io.Serializable {

	// Fields

	private Bnchf54ParamReqsTit bnchf54ParamReqsTit;
	private Bnchf24SitcLaboral bnchf24SitcLaboral;

	// Constructors

	/** default constructor */
	public Bnchf54ParamSitcLaboralId() {
	}

	/** full constructor */
	public Bnchf54ParamSitcLaboralId(Bnchf54ParamReqsTit bnchf54ParamReqsTit,
			Bnchf24SitcLaboral bnchf24SitcLaboral) {
		this.bnchf54ParamReqsTit = bnchf54ParamReqsTit;
		this.bnchf24SitcLaboral = bnchf24SitcLaboral;
	}

	// Property accessors

	public Bnchf54ParamReqsTit getBnchf54ParamReqsTit() {
		return this.bnchf54ParamReqsTit;
	}

	public void setBnchf54ParamReqsTit(Bnchf54ParamReqsTit bnchf54ParamReqsTit) {
		this.bnchf54ParamReqsTit = bnchf54ParamReqsTit;
	}

	public Bnchf24SitcLaboral getBnchf24SitcLaboral() {
		return this.bnchf24SitcLaboral;
	}

	public void setBnchf24SitcLaboral(Bnchf24SitcLaboral bnchf24SitcLaboral) {
		this.bnchf24SitcLaboral = bnchf24SitcLaboral;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bnchf54ParamSitcLaboralId))
			return false;
		Bnchf54ParamSitcLaboralId castOther = (Bnchf54ParamSitcLaboralId) other;

		return ((this.getBnchf54ParamReqsTit() == castOther
				.getBnchf54ParamReqsTit()) || (this.getBnchf54ParamReqsTit() != null
				&& castOther.getBnchf54ParamReqsTit() != null && this
				.getBnchf54ParamReqsTit().equals(
						castOther.getBnchf54ParamReqsTit())))
				&& ((this.getBnchf24SitcLaboral() == castOther
						.getBnchf24SitcLaboral()) || (this
						.getBnchf24SitcLaboral() != null
						&& castOther.getBnchf24SitcLaboral() != null && this
						.getBnchf24SitcLaboral().equals(
								castOther.getBnchf24SitcLaboral())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getBnchf54ParamReqsTit() == null ? 0 : this
						.getBnchf54ParamReqsTit().hashCode());
		result = 37
				* result
				+ (getBnchf24SitcLaboral() == null ? 0 : this
						.getBnchf24SitcLaboral().hashCode());
		return result;
	}

}